home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970104-19970326 / 000335_news@columbia.edu _Mon Mar 3 11:22:11 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id LAA05980
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Mon, 3 Mar 1997 11:22:11 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id LAA27771
  7.     for kermit.misc@watsun; Mon, 3 Mar 1997 11:22:10 -0500 (EST)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: It's possible receive files in background?
  12. Date: 3 Mar 1997 16:22:08 GMT
  13. Organization: Columbia University
  14. Lines: 37
  15. Message-ID: <5fetrg$bqe$1@apakabar.cc.columbia.edu>
  16. References: <3316318D.7978@mics.msu.su> <5f7094$hc4$1@apakabar.cc.columbia.edu> <331A971A.753D@mics.msu.su>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:6674
  19.  
  20. In article <331A971A.753D@mics.msu.su>,
  21. Andrew A. Ivanov <ivanov@mics.msu.su> wrote:
  22. : Frank da Cruz wrote:
  23. : > Probably C-Kermit is getting stuck because it wants to print a message
  24. : > to stdout.  If you start it with the -q option, it will be "quiet".
  25. :
  26. : Oh, I have already tried -q and many other swithes, I guess it wants
  27. : read command from stdin (no script specified in command line).
  28. :
  29. OK, so specify a script file on the command line.
  30.  
  31. : > Now, let's assume there is a maximum amount of time that you want to
  32. : > capture the data (let's say, 600 seconds), and there is a marker to show
  33. : > the end of the data (let's say it's "End of Data").
  34. :
  35. : Hm.. Is it possible to not make any assumption about time (may be next
  36. : data will be in next week)? It is not a file but simple continuous _log_
  37. : without end marker.
  38. :
  39. If it was not a background session, then you could put Kermit into CONNECT
  40. mode and use "log session" to record everything.  But CONNECT only works in
  41. the foreground because it must read from the keyboard (stdin) and write to
  42. the screen (stdout).
  43.  
  44. You can use INPUT in the background, but INPUT must be given a timeout and
  45. a termination string.  If you want it to record for an indefinite amount of
  46. time, use a loop, like:
  47.  
  48.   set input echo off
  49.   set input timeout proceed
  50.   log session
  51.   while true { input 600 xxx }
  52.  
  53. To terminate the session, put the job in the foreground, Ctrl-C, and "close
  54. session" (or just "exit").
  55.  
  56. - Frank